<template>
  <div>
    <slot :data="slotProp1"></slot>
    <h1>这是slot1：<slot name="slot1"></slot></h1>
    <h2>这是slot2：<slot name="slot2"></slot></h2>
    <slot :data="slotProp1" name="slot3"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      slotProp1: {
        test: 1,
      },
    };
  },
};
</script>

<style>
</style>    